home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1993-02-25 | 1.7 KB | 73 lines |
- '------------------------------------------------------
- ' AMOS Versions displayer
- ' By Francois Lionet
- ' AMOS (c) Europress Software 1990-1991
- '------------------------------------------------------
- ' This small program will explore all the AMOS files
- ' and look for the version number within them.
- '------------------------------------------------------
- '
- Dim F$(100)
- Set Dir 60
- '
- Screen Open 0,640,200,2,Hires : Colour 1,$FFF : Curs Off
- '
- Centre At(,1)+"< AMOS Versions >"
- Print : Print
- '
- F$=Fsel$("AMO**","","Please select your "+Pen$(3)+"AMOS"+Pen$(2),"interpretor...")
- If F$="" : Edit : End If
- '
- F$(0)=F$
- '
- D$=":AMOS_System/"
- If Exist(D$)=0
- D$=Fsel$("**","","Please choose any file within your ",Pen$(3)+"AMOS_System"+Pen$(2)+" folder...")
- If D$="" : Edit : End If
- NAME[D$] : D$=Left$(D$,Param)
- If Exist(D$)=0 : Edit : End If
- End If
- '
- Print "Looking for the files..."
- F$=Dir First$(D$+"**")
- While F$<>""
- If Left$(F$,1)=" "
- F$=Left$(F$,50)-" "
- Inc NF : F$(NF)=D$+F$
- End If
- F$=Dir Next$
- Wend
- '
- Reserve As Work 10,32*1024
- '
- Print
- Print "Here are your current version numbers :"
- Print
- '
- For N=0 To NF
- Fill Start(10) To Start(10)+Length(10),0
- Open In 1,F$(N)
- Sload 1 To Start(10),Length(10)
- Close
- P=Hunt(Start(10) To Start(10)+Length(10),Chr$(0)+"$VER:")
- If P
- V$=""
- For PP=P+6 To P+32
- C=Peek(PP) : Exit If C=0
- V$=V$+Chr$(C)
- Next
- NAME[F$(N)] : N$=Mid$(F$(N),Param+1)
- Print N$;String$(".",60-Len(N$));"V";V$
- End If
- Next
- '
- Print
- Print "Press any key..."
- Wait Key : Edit
- '
- Procedure NAME[N$]
- For C=Len(N$) To 1 Step -1
- A$=Mid$(N$,C,1)
- Exit If(A$="/") or(A$=":")
- Next
- End Proc[C]